package com.itcm.cloudStudy.controller;

import com.itcm.cloudStudy.service.MsgProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 描述:
 *
 * @author cm_fighting
 * @create 2020-08-13 5:05 下午
 */
@RestController
public class SendMessageController {
    @Resource
    private MsgProvider msgProvider;

    @GetMapping("/sendMessage")
    public String sendMessage() {
        msgProvider.send();
        return "ok";
    }
}
